package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务-附件业务对象 zj_sys_business_file
 *
 * @author zyb
 * @date 2023-12-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysBusinessFileBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 业务ID, ref 业务的id
     */
    @NotNull(message = "业务ID, ref 业务的id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long businessId;

    /**
     * 业务附件key 例如 xx合同，xx证明、xx实验结果
     */
    private String businessFileKey;

    /**
     * 附件ID，ref sys_oss.oss_id
     */
    @NotNull(message = "附件ID，ref sys_oss.oss_id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ossId;

    /**
     * 模块Key
     */
    private String moduleKey;

    /**
     * 排序
     */
    private Integer sort;


}
